<template>
	<view class="container">
		<view class="orderinfo box-1" v-if="!switchCheck">
			<view class="form-item">
				<text>姓名</text>
				<view class="r-text">
					<input type="text" placeholder="请输入" placeholder-class="input-tip"/>
				</view>
			</view>
			<view class="form-item">
				<text>手机号</text>
				<view class="r-text">
					<input type="text" placeholder="请输入" placeholder-class="input-tip"/>
				</view>
			</view>
			<view class="form-item">
				<text>字段名称</text>
				<view class="r-text">
					<input type="text" placeholder="请输入" placeholder-class="input-tip"/>
				</view>
			</view>
		</view>
		<view class="del-btn" v-if="type==2">
			<view class="center">
				<image :src="$img_path('/course/img/8.png')" mode="widthFix"></image>
				<text>删除</text>
			</view>
		</view>
		
		<view class="bottom-btn pb-con">
			<button>完成</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:1,
			};
		},
		onLoad(data) {
			this.type=data.type
		},
	}
</script>
<style>
	page{
		background-color: #F8F8F8;
	}
</style>
<style lang="scss" scoped>
.container{
	padding: 20rpx 22rpx 0;
	.orderinfo{
		width: 100%;
		background-color: #ffffff;
		border-radius: 20rpx;
		padding: 0 24rpx;
		box-sizing: border-box;
		.form-item{
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 30rpx 0;
			border-top: 1rpx solid #F5F5F5;
			&>text{
				font-weight: bold;
				font-size: 34rpx;
				color: #333333;
				line-height: 48rpx;
			}
			.r-text{
				display: flex;
				align-items: center;
				text{
					font-weight: 400;
					font-size: 30rpx;
					color: #333333;
					line-height: 42rpx;
				}
				image{
					width: 24rpx;
					height: 24rpx;
				}
				
				input{
					text-align: right;
					font-weight: bold;
					font-size: 34rpx;
					color: #333333;
					line-height: 48rpx;
				}
				&.num{
					image{
						width: 44.8rpx;
						height: 44.8rpx;
					}
					input{
						width: 70rpx;
						height: 44.8rpx;
						padding: 0 4rpx;
						box-sizing: border-box;
						text-align: center;
					}
				}
			}
		}
	}

	.del-btn{
		display: flex;
		justify-content: center;
		margin-top: 40rpx;
		.center{
			display: inline-block;
			display: flex;
			align-items: center;
			image{
				width: 36rpx;
				height: 36rpx;
			}
			text{
				font-weight: bold;
				font-size: 34rpx;
				color: #FD7950;
				line-height: 48rpx;
				margin-left: 8rpx;
			}
		}
	}
}
.bottom-btn{
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding-left: 22rpx;
	padding-right: 22rpx;
	box-sizing: border-box;
	button{
		width: 100%;
		height: 96rpx;
		background: linear-gradient( 135deg, #FFA233 0%, #FB4C4C 100%);
		border-radius: 80rpx 80rpx 80rpx 80rpx;
		font-weight: bold;
		font-size: 36rpx;
		color: #FFFFFF;
		line-height: 96rpx;
	}
}
</style>
